import instance from '@/utils/request'

// 部门分页
export const deptPage = (params) => instance.post('depts/page', params)


// 添加或编辑部门
export const insert_edit_dept = (form) => instance.post('depts/insert/edit', form)


// 根据id获取部门信息
export const dept_one = (id) => instance.get("depts/one/" + id)

// 删除部门信息
export const dept_delete = (id) => instance.get("depts/delete/" + id)


// 查询部门列表

export const  dept_list = ()=>instance.get('depts/list')
